package cn.kgc.springboot.service.impl;

import cn.kgc.springboot.entity.Student;
import cn.kgc.springboot.mapper.StudentMapper;
import cn.kgc.springboot.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mosin
 * date 2021/12/12
 * @version 1.0
 */
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> findAll() {

        List<Student> students = studentMapper.queryAll();
        return students;
    }
}
